package final2107.day01;

import java.util.ArrayList;
import java.util.List;

public class OOMDemo {
    public static void main(String[] args) {
        List<Person> list = new ArrayList<>();
        while (true){
            list.add(new Person());
            System.out.println(list.size());
        }
    }
}

class Person{}
